package com.zheng.damo1.StringBuilderTest01;



import java.io.File;

public class Test01 {
    public static void main(String[] args) {
        StringBuffer sb=new StringBuffer();
        StringBuffer sb1=new StringBuffer(6);
        StringBuffer sb2=new StringBuffer(8);

        System.out.println(sb.capacity());//16
        System.out.println(sb1.capacity());//6
        System.out.println(sb2.capacity());//8
        StringBuffer sb3=new StringBuffer("abcd我fg");
        StringBuffer sb4=new StringBuffer("abd");
        int i = sb3.codePointAt(4);
        System.out.println(i);//25105
        int i1 = sb3.compareTo(sb4);
        System.out.println(i1);
        double v = Math.random() * 30 + 30;
        System.out.println(v);
        File f=new File("");
        System.out.println(sb3);



    }
}
